'use strict';
angular.module('mjh', [
    'ui.router',
    'ngStorage'
]).config(['$stateProvider', '$urlRouterProvider', '$locationProvider', '$httpProvider',
    function ($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {
        /*html5mode will be true, when release,
         this is auto build, don't need modify*/
        $locationProvider.html5Mode(false);
        $stateProvider
        //主页面结构页面部分**********************************************
            .state('home', {
                url: '/home',
                views: {
                    '': {
                        templateUrl: 'views/home/home.html',
                        controller: 'homeCtr'
                    }
                }
            });
        $urlRouterProvider
            .when('/home', '/home')
            .otherwise('/home');
    }
]);
